package cn.net.cfss.fgbp.provider.manage.utils;

import cn.net.cfss.fgbp.spi.manage.vo.ResultDto;
import org.apache.poi.ss.formula.functions.T;

/**
 * @author wutao
 * @version 1.0
 * @date 2021/3/5 14:39
 */
public class ResultUtil<T> {

    public static ResultDto returnFail (String errMsg) {
        return new ResultDto(false, null, errMsg);
    }

    public static ResultDto returnSucc (Object o) {
        return new ResultDto(true, o, "");
    }
}
